package com.lianda.java8.functional.base;

/**
 * 函数式编程测试
 * https://www.cnblogs.com/itplay/p/10721904.html
 */
public class FunctionalMain {
    public static void main(String[] args) throws Exception {
        GreetingService greetingService = message -> {
            System.out.println("Hello " + message);
        };
        greetingService.sayMessage("Fuck!");
        greetingService.doSomeMoreWork1();
        GreetingService.printHello();
    }
}
